home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group99a.txt / 000162_icon-group-sender _Mon Jul 19 12:47:36 1999.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id MAA14947
  4.     for icon-group-addresses; Mon, 19 Jul 1999 12:47:29 -0700 (MST)
  5. Message-Id: <199907191947.MAA14947@baskerville.CS.Arizona.EDU>
  6. From: "Nevin Liber" <nevin@eviloverlord.com>
  7. To: <icon-group@optima.CS.Arizona.EDU>
  8. Cc: "Frank Lhota" <lhotaf@lexma.meitech.com>, "Garry" <memphis@macconnect.com>
  9. Subject: RE: [Q][newbie] Why use a useless loop?
  10. Date: Mon, 19 Jul 1999 10:57:42 -0500
  11. X-Priority: 3 (Normal)
  12. X-MSMail-Priority: Normal
  13. Importance: Normal
  14. X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
  15. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  16. Status: RO
  17.  
  18. Frank Lhota [mailto:lhotaf@lexma.meitech.com] wrote:
  19.  
  20. > One thing that strikes me about the implementation of both this procedure
  21. > and of basename is the use of a variable to store a position in
  22. > the subject
  23. > string. Frankly, I do not know why this is done when a simpler and more
  24. > straightforward solution can be obtained by using the tab function.
  25.  
  26. I vaguely remember that in older implementations of Icon there were some
  27. pecularities when having nested string scanning environments.  There is some
  28. reference to this at <http://www.cs.arizona.edu/icon/docs/ipd112.htm>,
  29. although I might be thinking of something else.
  30.  
  31. Most of these procedures are probably old enough that they were coded to
  32. explicitly keep track of the position within a string as to avoid problems
  33. when being called within a string scanning environment.  If this is indeed
  34. the reason, I'm sure that most of the authors today would use string
  35. scanning to implement their solutions.
  36. __
  37.  Nevin ":-)" Liber  <mailto:nevin@eviloverlord.com>  (312) 855-1000 x199
  38.  
  39.